/**
 * Class qui permet permet de 'rediriger' la console dnas un JTextField
 */
package view;

import java.io.IOException;
import java.io.OutputStream;
import javax.swing.JTextArea;


class ArbreConsole extends OutputStream{

	    private JTextArea textControl;
	    
	    ArbreConsole( JTextArea control ) {
	        textControl = control;
	    }
	    
	    public void write( int b ) throws IOException {
	    	textControl.append( String.valueOf( ( char )b ) );
	    }   
	}